export default {
  path: '/admin',
  component: '../layouts/BlankLayout',
  routes: [
    {
      path: 'user',
      routes: [
        {
          name: '登录',
          path: 'login',
          component: './admin/User/login',
        },
      ],
    },
    {
      path: 'pdfPreview',
      name: 'PDF预览',
      component: './admin/Demo/pdfPreview',
    },
    {
      name: '微信登录',
      path: 'wechatLogin',
      component: './admin/Demo/wechatLogin',
    },
    {
      name: '调用微信接口',
      path: 'wechatCodeDeal',
      component: './admin/Demo/wechatCodeDeal',
    },
    {
      path: './',
      component: '../layouts/BasicLayout',
      routes: [
        {
          path: './',
          redirect: 'welcome',
        },
        {
          path: 'welcome',
          name: '欢迎访问',
          icon: 'smile',
          component: './admin/Welcome',
          hideInMenu: true
        },
        {
          name: '权限',
          path: 'auth',
          authority: ['auth'],
          icon: 'UsergroupAddOutlined',
          routes: [
            {
              name: '用户管理',
              path: 'UserManage',
              authority: ['user_manage'],
              component: './admin/Auth/UserManage',
            },
            {
              name: '角色管理',
              path: 'RoleManage',
              authority: ['role_manage'],
              component: './admin/Auth/RoleManage',
            },
            {
              name: '权限点管理',
              path: 'AuthManage',
              authority: ['auth_manage'],
              component: './admin/Auth/AuthManage',
            },
          ]
        },
        {
          name: '案例',
          path: 'demo',
          icon: 'GiftOutlined',
          routes: [
            {
              name: '基础语音合成',
              path: 'TextToVoice',
              component: './admin/Demo/textToVoice',
            },
            {
              name: '可配置表单',
              path: 'ConfigurableForm',
              component: './admin/Demo/ConfigurableForm',
            },
            {
              name: 'SchemaForm',
              path: 'SchemaForm',
              component: './admin/Demo/SchemaForm',
            },
            {
              name: '下载中心',
              path: 'DownloadList',
              component: './admin/Download/index',
            },
          ]
        },
        {
          component: './404',
        },
      ],
    },
  ],
}

